package com.water_work_form.mapper;

import com.water_work_form.entity.BasicForm;
import com.water_work_form.entity.BasicMedical;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 基础表——生产药剂 Mapper 接口
 * </p>
 *
 * @author xuke
 * @since 2023-08-01
 */
@Mapper
public interface BasicMedicalMapper extends BaseMapper<BasicMedical> {

    /**
     * 唯一索引查询
     * @param name
     * @return
     */
    @Select("SELECT * FROM basic_medical WHERE name = #{name}")
    BasicMedical getOneByName(String name);
}
